// Shows how to get the subject name of application certificates. // // Find all latest examples here: https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . using System; using OpcLabs.EasyOpc.UA.Application; using OpcLabs.EasyOpc.UA.Application.Extensions; namespace UADocExamples.Application._IEasyUAClientServerApplication { class GetCertificateSubjectName { public static void Main1() { // Obtain the application interface. EasyUAApplication application = EasyUAApplication.Instance; // Get the subject name of application certificates. string certificateSubjectName = application.GetCertificateSubjectName(); // Display results Console.WriteLine("Certificate subject name: {0}", certificateSubjectName); } } }
# Shows how to get the subject name of application certificates. # # Find all latest examples here: https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . # OPC client and subscriber examples in Python on GitHub: https://github.com/OPCLabs/Examples-QuickOPC-Python . # The QuickOPC package is needed. Install it using "pip install opclabs_quickopc". import opclabs_quickopc # Import .NET namespaces. from OpcLabs.EasyOpc.UA.Application import * from OpcLabs.EasyOpc.UA.Application.Extensions import * # Obtain the application interface. application = EasyUAApplication.Instance # Get the subject name of application certificates. certificateSubjectName = IEasyUAClientServerApplicationExtension.GetCertificateSubjectName(application) # Display results. print('Certificate subject name: ', certificateSubjectName, sep='') print() print('Finished.')
' Shows how to get the subject name of application certificates. ' ' Find all latest examples here: https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . Imports Microsoft.Extensions.DependencyInjection Imports OpcLabs.EasyOpc.UA Imports OpcLabs.EasyOpc.UA.Application Imports OpcLabs.EasyOpc.UA.Application.ComTypes Imports OpcLabs.EasyOpc.UA.Application.Extensions Namespace Application._IEasyUAClientServerApplication Friend Class GetCertificateSubjectName Public Shared Sub Main1() ' Obtain the application interface. Dim application As EasyUAApplication = EasyUAApplication.Instance ' Get the subject name of application certificates. Dim certificateSubjectName = application.GetCertificateSubjectName() ' Display results Console.WriteLine("Certificate subject name: {0}", certificateSubjectName) End Sub End Class End Namespace
// Shows how to get the subject name of application certificates. // // Find all latest examples here : https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . class procedure GetCertificateSubjectName.Main; var Application: TEasyUAApplication; CertificateSubjectName: string; begin // Obtain the application interface. Application := TEasyUAApplication.Create(nil); // Get the subject name of application certificates. CertificateSubjectName := Application.GetCertificateSubjectName(''); // Display results WriteLn('Certificate subject name: ', CertificateSubjectName); end;
Copyright © 2004-2024 CODE Consulting and Development, s.r.o., Plzen. All rights reserved.
Send Documentation Feedback. Technical Support